Skip to content

python: add combat shim for older distros#3290

Closed
igaw wants to merge 1 commit intolinux-nvme:masterfrom
igaw:python-combat
Closed

python: add combat shim for older distros#3290
igaw wants to merge 1 commit intolinux-nvme:masterfrom
igaw:python-combat

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Apr 20, 2026

Newer SWIG started generating Py_NewRef() calls in its own runtime boilerplate, but Py_NewRef wasn't added until Python 3.10. The mismatch hits any distro with SWIG ≥ 4.1 but Python < 3.10.

Suggested-by: Martin Belanger [email protected]

Newer SWIG started generating Py_NewRef() calls in its own runtime
boilerplate, but Py_NewRef wasn't added until Python 3.10. The mismatch
hits any distro with SWIG ≥ 4.1 but Python < 3.10.

Suggested-by: Martin Belanger <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>
@martin-belanger
Copy link
Copy Markdown

@igaw - Hey Daniel, I've already added this change in a PR I'm working on. I was planning to submit later today. The PR will contain other Python bug-fixes/improvements as per my previous email.

@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Apr 20, 2026

ah okay, just though I do it quickly. I'll pick your version then :)

@igaw igaw closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants